
function commentSubmit() {
document.cform.action='http://blog.home.blogbus.com/front/1169366/comments/34574525/item';
document.cform.target='_self';
document.cform.login.value='1';
document.cform.submit();

}
function checkcmt(obj) {
if (obj.content.value=='') {
 alert('评论内容为必填项');
 document.getElementById('submit_comment').disabled=false;
 return false;
}

}
$('#commentForm').html("<h2>发表评论</h2><a name=\"cmt_form\"></a><form method=\"post\" name=\"cform\" action=\"http://www.blogbus.com/user/login.php?front=1&forward=/passport.html&do=http://home.blogbus.com/passport\" onsubmit=\"return check_cmt(this);\" target=\"login_form\" ><fieldset style=\"margin:0; padding:0; border:none;display:none;\" id=\"nologin999\"><div><label for=\"cname\">姓　名</label><input class=\"textField\" id=\"cname\" name=\"cname\" type=\"text\" /> <span style=\"color:#ccc; margin-left:5px;\" class=\"emailnotice\"><a href=\"#\" title=\"登录后评论\" style=\"text-decoration:underline;\" onclick=\"$('#nologin999').hide(); $('#remember_box').hide();$('#login999').show('fast');document.cform.action='http://www.blogbus.com/user/login.php?front=1&forward=/passport.html&do=http://home.blogbus.com/passport';return false;\">登录后评论</a></span></div><div><label for=\"cemail\">E-Mail</label><input class=\"textField\" id=\"cemail\" name=\"email\" type=\"text\" /> <span style=\"color:#ccc; margin-left:5px;\" class=\"emailnotice\"><span>您将收到博主的回复邮件</span></span></div><div><label for=\"cemail\">地　址</label><input class=\"textField\" id=\"cemail\" name=\"homepage\" type=\"text\" /> </div></fieldset><fieldset style=\"margin:0; padding:0; border:none; \" id=\"login999\"><div><label for=\"cname\">用户名</label><input class=\"textField\" id=\"username\" name=\"username\" type=\"text\" value=\"\" tabindex=\"1\" /><span style=\"color:#ccc; margin-left:5px;\" class=\"emailnotice\"><a href=\"#\" title=\"匿名评论\" style=\"text-decoration:underline;\" onclick=\"$('#login999').hide();$('#remember_box').show('fast');$('#nologin999').show('fast');document.cform.action='http://blog.home.blogbus.com/front/1169366/comments/34574525/item';return false;\">匿名评论</a></span></div><div><label for=\"password\">密　码</label><input class=\"textField\" id=\"password\" name=\"password\" type=\"password\" value=\"\" tabindex=\"2\" /> </div></fieldset><div><textarea name=\"content\" rows=\"8\" tabindex=\"3\"></textarea></div><div class=\"submit\"><input type=\"hidden\" name=\"login\" value=\"0\" /><input type=\"hidden\" name=\"postId\" value=\"34574525\" /><input type=\"hidden\" name=\"blogId\" value=\"1169366\" /><input type=\"hidden\" name=\"checksum\" value=\"d8c55a738eeb612fbde967d57dc9d52b\" /><input type=\"hidden\" name=\"name\" value=\"\" /><table><tr><td><input class=\"button\" name=\"addsub\" value=\"提交\" id=\"submit_comment\" type=\"submit\" /></td><td><span id=\"remember_box\" style=\"display:none\" class=\"rememberBox\"><input id=\"cremember\" name=\"remember\" Checked=\"true\" type=\"checkbox\" class=\"cremember\" style=\"margin:0; padding:0; border:0; width:auto;\" /> 记住我</span></td></tr></table></div></form><iframe name=\"login_form\" style=\"display:none\" width=\"400px\"></iframe>");

